package com.generalbackend.role.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.generalbackend.role.model.entity.PermissionRestApi;
import com.generalbackend.role.model.query.PermissionRestApiQuery;

/**
* ClassName: PermissionRestApiQueryOption
* @Description 业务层
* @author tim.xie
* @date 2021-12-14 13:26
*/


public interface IPermissionRestApiService extends IService<PermissionRestApi> {

    /**
     * 添加
     * @param permissionRestApi
     * @return
     */
    Boolean insert(PermissionRestApi permissionRestApi);

    /**
     * 修改
     * @param permissionRestApi
     * @return
     */
    Boolean update(PermissionRestApi permissionRestApi);

     /**
     * 根据id删除
     * @param id
     * @return
     */
    Boolean deleteById(String id);

    /**
     * 根据id得到对象
     * @param id
     * @return
     */
    PermissionRestApi  selectById(String id);

    /**
    * 根据条件查询集合列表
    * @param permissionRestApiQuery
    * @return
    */
    JSONObject list(PermissionRestApiQuery permissionRestApiQuery);



}
